﻿using Api.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebMatrix.WebData;
using Layans.Data;
using Api.Models.Chat;
using Layans.Model;
namespace Api.Controllers.Chat
{
    public class ChatController : Controller
    {
        //LayansContext db = new LayansContext(); 
       
        //public ActionResult Index(ChatChanel chatChanel)
        //{
        //    //var user = db.Author.FirstOrDefault(x => x.UserId == WebSecurity.CurrentUserId);
        //    var post = new ChatChanel
        //    {
        //        Name = user,
        //        Chats = chats,

        //    };
        //    db.chatchanels.Add(post);
        //    db.SaveChanges();
        //    return Redirect("/");
        //}

        //public string chats { get; set; }

        //public LForum.Models.ExternalLoginConfirmationViewModel user { get; set; }
    }
}